
<div id="capnhat_tttb">
	<div id="tieude_capnhat_tttb">
    	<img src="<?php echo base_url();?>image/admin/menu.png" width="35px" height="35px"><label>CẬP NHẬT TIN TỨC - THÔNG BÁO</label>
    </div>
    <div id="noidung_capnhat_tttb">
        <div id="control_noidung_capnhat_tttb">
            <div id="control_noidung_capnhat_tttb_quayve"><label><a href="<?php echo base_url();?>index.php/admin/admin/qltttb">Quay về</a></label></div>
            <div id="control_noidung_capnhat_tttb_luu"><label><a href="#" onclick="document.forms['capnhat_tttb_form_frm'].submit(); return false;">Đồng ý</a></label></div>
        </div>
        <div id="capnhat_tttb_form">
					<?php
                        $attributes = array('id'=>'capnhat_tttb_form_frm', 'name'=>'capnhat_tttb_form_frm');			
                        echo form_open_multipart(base_url().'index.php/admin/admin/update_tttb/'.$item->id_tin,$attributes);
                    ?>         
                  	
                    	<div class="block_capnhat_tttb">
                    		<label>Tiêu đề</label>
	                       	<input class="input_capnhat_tttb_tieude" type="text" id="admin_tieude_capnhat_tttb" name="admin_tieude_capnhat_tttb" value="<?php echo set_value('admin_tieude_capnhat_tttb',$item->tieu_de) ?>"/>                                                      
                        </div>
                        <?php echo form_error('admin_tieude_capnhat_tttb', '<div class="error_validate_capnhat_tttb">', '</div>'); ?>                         
                        <div class="block_capnhat_tttb_trangthai">
                        	<label>Trạng thái</label>
                            <select class="input_capnhat_tttb_trangthai" id="admin_trangthai_capnhat_tttb" name="admin_trangthai_capnhat_tttb">
                            	<option value="<?php echo $item->trang_thai ?>" <?php if($item->trang_thai==1) echo "selected" ?>>Hiển thị</option>
                                <option value="<?php echo $item->trang_thai ?>" <?php if($item->trang_thai==0) echo "selected" ?>>Không hiển thị</option>
                            </select>
						</div>
                        <div class="block_capnhat_tttb_hinhanh">
                        	<label>Hình ảnh</label>	
                            <input class="input_capnhat_tttb_hinhanh" type="file" name="admin_tttb_fileHinhAnh" id="admin_tttb_fileHinhAnh" />                         

                            <img src="<?php echo base_url()."image/tintuc/".$item->hinh_anh;?>" alt="" />
                         </div>
                         <?php echo form_error('admin_tttb_fileHinhAnh', '<div class="error_validate_capnhat_tttb">', '</div>'); ?>                          
                    	 <div class="block_capnhat_tttb_noidung">
                        	<label>Nội dung</label>
                            <textarea class="input_capnhat_tttb_noidung" id="admin_noidung_tao_tttbmoi" name="admin_noidung_tao_tttbmoi" value="<?php echo set_value('admin_noidung_tao_tttbmoi',$item->noi_dung)?>"></textarea>
                          </div>
                         <?php echo form_error('admin_noidung_capnhat_tttb', '<div class="error_validate_capnhat_tttb">', '</div>'); ?> 

                    </form>
                </div> 	
    </div>
</div>